package com.service.impl;

import com.mapper.OrderMapper;
import com.pojo.Order;
import com.pojo.Raising;
import com.pojo.UserOrder;
import com.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Zhengjz
 * @version 1.0
 * @className OrderServiceimpl
 * @date 2021/3/2 15:36
 */
@Service
public class OrderServiceimpl implements OrderService {
@Autowired
private OrderMapper orderMapper;

    @Override
    public int addTianShu(String date) {
        return orderMapper.addTianShu(date);
    }

    @Override
    public int addOrder(Order order) {
        return orderMapper.addOrder(order);
    }

    @Override
    public List<Order> findById(String rId) {
        return orderMapper.findById(rId);
    }

    @Override
    public int updateOrder(Order order) {
        return orderMapper.updateOrder(order);
    }

    @Override
    public List<Order> findOrder(Integer userId) {
        return orderMapper.findOrder(userId);
    }

    @Override
    public List<Order> rfindOrder(Integer userId) {
        return orderMapper.rfindOrder(userId);
    }

    //饲养师完成订单
    @Override
    public int rrrOrder(String orderId) {
        return orderMapper.rrrOrder(orderId);
    }

    @Override
    public int raddOrder(String tuozhan) {
        return orderMapper.raddOrder(tuozhan);
    }

    @Override
    public Raising selRa(String userId) {
        return orderMapper.selRa(userId);
    }

    @Override
    public int addRaId(Order order) {
        return orderMapper.addRaId(order);
    }
}
